import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    var: [
        {
        name: "iphone 11 por",
        id:"1",
        trem: [
          {price: 6999,id:"1",url:"https://www.apple.com.cn/v/iphone/home/ax/images/chapternav/iphone_12_pro_dark__c1xodf0hb1w2_large.svg"}
        ]
      },
      // {
      //   name: "iphone 12",
      //   id: "2",
      //   trem: [{
      //     price: 6999,
      //     id: "1",
      //     url: "https://www.apple.com.cn/v/iphone/home/ax/images/chapternav/iphone_12_dark__d7asodlag7e6_large.svg"
      //   }]
      // },
      {
        name: "iphone SE",
        id: "3",
        trem: [{
          price: 6999,
          id: "1",
          url: "https://www.apple.com.cn/v/iphone/home/ax/images/chapternav/iphone_se_dark__b1b8q1iya5o2_large.svg"
        }]
      },
      {
        name: "iphone 11",
        id: "4",
        trem: [{
          price: 6999,
          id: "1",
          url: "https://www.apple.com.cn/v/iphone/home/ax/images/chapternav/iphone_11_dark__di5n0jory1me_large.svg"
        }]
      },
      {
        name: "iphone XR",
        id: "5",
        trem: [{
          price: 6999,
          id: "1",
          url: "https://www.apple.com.cn/v/iphone/home/ax/images/chapternav/iphone_xr_dark__ft3blnh7c6q2_large.svg"
        }]
      },
    ],
  },
  mutations: {},
  actions: {},
  modules: {},
});